package com.zxcrm.zxcrm.mapper;

import java.util.List;
import com.zxcrm.zxcrm.domain.ZxcrmBusinessOpportunity;

/**
 * 商机Mapper接口
 * 
 * @author xu
 * @date 2025-07-08
 */
public interface ZxcrmBusinessOpportunityMapper 
{
    /**
     * 查询商机
     * 
     * @param id 商机主键
     * @return 商机
     */
    public ZxcrmBusinessOpportunity selectZxcrmBusinessOpportunityById(Long id);

    /**
     * 查询商机列表
     * 
     * @param zxcrmBusinessOpportunity 商机
     * @return 商机集合
     */
    public List<ZxcrmBusinessOpportunity> selectZxcrmBusinessOpportunityList(ZxcrmBusinessOpportunity zxcrmBusinessOpportunity);

    /**
     * 新增商机
     * 
     * @param zxcrmBusinessOpportunity 商机
     * @return 结果
     */
    public int insertZxcrmBusinessOpportunity(ZxcrmBusinessOpportunity zxcrmBusinessOpportunity);

    /**
     * 修改商机
     * 
     * @param zxcrmBusinessOpportunity 商机
     * @return 结果
     */
    public int updateZxcrmBusinessOpportunity(ZxcrmBusinessOpportunity zxcrmBusinessOpportunity);

    /**
     * 删除商机
     * 
     * @param id 商机主键
     * @return 结果
     */
    public int deleteZxcrmBusinessOpportunityById(Long id);

    /**
     * 批量删除商机
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZxcrmBusinessOpportunityByIds(Long[] ids);

}
